package com.centaline.androidsalesblog.model.businissobject;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * 优惠图片
 * Created by Lihq on 2016/1/27.
 */
public class NewPropImgBo implements Parcelable {

    private int ImgId;
    private String FileNo;
    private String ImgType;
    private String ImgTitle;
    private String ImgDescription;
    private String FileUrl;
    private int ContentLength;
    private int Width;
    private int Height;
    @SerializedName("QueryObject")
    private NewPropImgQueryBo newPropImgQueryBo;

    public int getImgId() {
        return ImgId;
    }

    public void setImgId(int imgId) {
        ImgId = imgId;
    }

    public String getFileNo() {
        return FileNo;
    }

    public void setFileNo(String fileNo) {
        FileNo = fileNo;
    }

    public String getImgType() {
        return ImgType;
    }

    public void setImgType(String imgType) {
        ImgType = imgType;
    }

    public String getImgTitle() {
        return ImgTitle;
    }

    public void setImgTitle(String imgTitle) {
        ImgTitle = imgTitle;
    }

    public String getImgDescription() {
        return ImgDescription;
    }

    public void setImgDescription(String imgDescription) {
        ImgDescription = imgDescription;
    }

    public String getFileUrl() {
        return FileUrl;
    }

    public void setFileUrl(String fileUrl) {
        FileUrl = fileUrl;
    }

    public int getContentLength() {
        return ContentLength;
    }

    public void setContentLength(int contentLength) {
        ContentLength = contentLength;
    }

    public int getWidth() {
        return Width;
    }

    public void setWidth(int width) {
        Width = width;
    }

    public int getHeight() {
        return Height;
    }

    public void setHeight(int height) {
        Height = height;
    }

    public NewPropImgQueryBo getNewPropImgQueryBo() {
        return newPropImgQueryBo;
    }

    public void setNewPropImgQueryBo(NewPropImgQueryBo newPropImgQueryBo) {
        this.newPropImgQueryBo = newPropImgQueryBo;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.ImgId);
        dest.writeString(this.FileNo);
        dest.writeString(this.ImgType);
        dest.writeString(this.ImgTitle);
        dest.writeString(this.ImgDescription);
        dest.writeString(this.FileUrl);
        dest.writeInt(this.ContentLength);
        dest.writeInt(this.Width);
        dest.writeInt(this.Height);
        dest.writeParcelable(this.newPropImgQueryBo, 0);
    }

    public NewPropImgBo() {
    }

    protected NewPropImgBo(Parcel in) {
        this.ImgId = in.readInt();
        this.FileNo = in.readString();
        this.ImgType = in.readString();
        this.ImgTitle = in.readString();
        this.ImgDescription = in.readString();
        this.FileUrl = in.readString();
        this.ContentLength = in.readInt();
        this.Width = in.readInt();
        this.Height = in.readInt();
        this.newPropImgQueryBo = in.readParcelable(NewPropImgQueryBo.class.getClassLoader());
    }

    public static final Parcelable.Creator<NewPropImgBo> CREATOR = new Parcelable.Creator<NewPropImgBo>() {
        public NewPropImgBo createFromParcel(Parcel source) {
            return new NewPropImgBo(source);
        }

        public NewPropImgBo[] newArray(int size) {
            return new NewPropImgBo[size];
        }
    };
}
